package com.swsc.ai.enums;

/**
 * @describe: 召回策略的任务枚举
 * @author: 容若
 * @created: 2023-12-06 13:23
 */
public enum RecallTaskEnum {
    NCD_TASK("1", "同业存单人群圈选"),
    FUND_INDEX_TASK("2", "指数基金兴趣人群圈选"),
    STOCK_TASK("3", "炒股兴趣人群圈选");

    private String code;
    private String taskName;

    RecallTaskEnum(String code, String taskName) {
        this.taskName = taskName;
        this.code = code;
    }
    public static String taskName(String code) {
        for (RecallTaskEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getTaskName();
            }
        }
        return "其他圈选";
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }
}
